// JavaScript Document
var my = {
	user_info: function () {
		var data = {};
		$.commonAjax({
			url: 'B039',
			type: 'GET',
			data: data,
			isShowError: true,
			success: function (res) {
				console.log(res);
			}, error: function (res) {
				$.layermsg(res.msg);
			}
		});
	}, my_collection: function (categroyId, areaCode, auctionType, auctionStatus, orderField, orderDirection, keyword, pageNum, pageSize) {
		var data = {
			categroyId: categroyId,//分类ID
			areaCode: areaCode,//地区编号
			auctionType: auctionType,//竞拍方式
			auctionStatus: auctionStatus,//竞拍状态
			orderField: orderField,//排序字段
			orderDirection: orderDirection,//还需方式
			keyword: keyword,//查询关键字
			pageNum: pageNum,//页码
			pageSize: pageSize//每页条数
		};
		$.commonAjax({
			url: 'B054',
			type: 'POST',
			data: data,
			isShowError: true,
			success: function (res) {
				console.log(res);
			}, error: function (res) {
				$.layermsg(res.msg);
			}
		});
	}
}
$(function () {
	$('.userName').text($.ls('bp_name'));
	//my.user_info();	
	//my.my_collection();
	
	var bp_token = $.ls('bp_token');
	if (bp_token == null || $.getSession('user_info')=='') {
		bp.jump('signIn.html');
	}
	$('.backArrow').click(function () {
		bp.goback();
	});
})